
<%@ page import="org.ikastola.BalanceFees" %>
<!DOCTYPE html>
<html>
	<head>
		<meta name="layout" content="main">
		<g:set var="entityName" value="${message(code: 'balanceFees.label', default: 'BalanceFees')}" />
		<title><g:message code="default.list.label" args="[entityName]" /></title>
		<g:javascript library="jquery" plugin="jquery"/>
	</head>
	<body>
		<a href="#list-balanceFees" class="skip" tabindex="-1"><g:message code="default.link.skip.label" default="Skip to content&hellip;"/></a>
		<div class="nav" role="navigation">
			<ul>
				<li><a class="home" href="${createLink(uri: '/')}"><g:message code="default.home.label"/></a></li>
<%--				<li><g:link class="create" action="create"><g:message code="default.new.label" args="[entityName]" /></g:link></li>--%>
<%--				<li><a class="list"> <g:message code="default.search.label"/>: </a></li>--%>
			</ul>
		</div>
		<div id="list-balanceFees" class="content scaffold-list" role="main">
			<h1>Reportes Pago Tarifas</h1>
			<g:if test="${flash.message}">
			<div class="message" role="status">${flash.message}</div>
			</g:if>
				<g:formRemote name="search" update="studentList" url="[action:'getBalance', controller:'balanceFees']" >
				<div class="fieldcontain">		
					<label for="Tarifa">Tarifa:</label>
					<select name="fee" id="fee" >
						<g:each in="${org.ikastola.Fee.list()}">
							<option value="${it.id}">${it.name} (${it.description})</option> 
						</g:each>
					</select>
				</div>
				<div class="fieldcontain">
					<label for="Curso">Curso:</label>
					<select name="course" id="course" >
						<g:each in="${org.ikastola.Course.list()}">
							<option value="${it.id}">${it.name+' '+it.division+' '} <g:if test="${it.shift == 1}"><g:message code="course.shift.1" /></g:if><g:else><g:message code="course.shift.2" /></g:else></option> 
						</g:each>
					</select>
				</div>
				<div class="fieldcontain">
					<label for="Hasta">Hasta:</label>
					<g:datePicker name="month" value="${new Date()}" precision="month" relativeYears="[-2..2]"/>
				</div>	
				<div class="fieldcontain">
					<label></label>
					<input type="submit" value="Consultar" />
				</div>
				</g:formRemote>
				<br/>
				<div id="studentList"></div>
		</div>
	</body>
</html>
